package com.lulu.project.model.enums;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @author wlc
 * @version 1.0
 */
public enum InterfaceInfoStatusEnum {
    ONLINE(1),
    OFFLINE(0);

    private final Integer status;

    InterfaceInfoStatusEnum(Integer status) {
        this.status = status;
    }

    public Integer getStatus() {
        return status;
    }
    public static List<Integer> getValues() {
        return Arrays.stream(values()).map(item -> item.status).collect(Collectors.toList());
    }
}
